package com.flute.haflute.jobbox.communication;

import java.rmi.RemoteException;

import com.flute.haflute.jobbox.communication.messages.MessageBase;

public interface ServerService {

	/** 有消息request需要发送 */
	public void send(String host, MessageBase request) throws RemoteException;		
	
	/** 有消息需要广播出去 */
	public void broadcast(MessageBase request) throws RemoteException;		
	
	/** 关闭消息连接  */
	public void close() throws Exception;
}
